<template>
    <div>
         <div v-for="site in info" :key="site.id"> {{ site.name }}</div>
    </div>
</template>
<script>
export default {
    name:'Myson',
    data(){
        return{
            info:null
        }
    },
     mounted () {
         
// const axios = require('axios');

//     axios
//       .get('https://www.runoob.com/try/ajax/json_demo.json')
//       .then(response => (this.info = response))
//       .catch(function (error) { // 请求失败处理
//         console.log(error);
//       });
  }
}
</script>
<style lang="less">

</style>